﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Kaidanshenqi.aspx.cs" Inherits="Yule8xWechat.XAgent.Kaidanshenqi" %>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>代理首页</title>
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/comm.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/icon.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/my.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/agent.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/guid.css" />
    <script src="../Skin/Theme/Js/flexible_css.js" type="text/javascript" charset="utf-8"></script>
    <script src="../Skin/Theme/Js/flexible.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
        .content {position:inherit;}
        .section-bar { height:100px; line-height:100px; font-weight:bold; color:#F00;}
    </style>
</head>

<body>
    <div class="section-bar">代理首页</div>
    <!-- ####################################代理首页#################################### -->
    <div class="content  b-h">
        <!--头部信息二维码-->
        <div class="topinfo">
            <a href="QrInfo.aspx">
                <div class="infoarea">
                    <span class="headimg">
                        <img src="<%=wxUser.headimgurl %>"></span>
                    <span class="nameinfo">
                        <div class="myname"><%=wxUser.nickname %></div>
                        <div class="mygameid">代理ID <%=wxUser.user_id %></div>
                    </span>
                    <span class="detailarrow">
                        <img src="../Skin/Theme/Images/my/arrow.png"></span>
                    <span class="qrimg">
                        <img src="../Skin/Theme/Images/my/qrcode.png"></span>

                </div>
            </a>
        </div>
        <div class="clear"></div>
        <!--代理数据信息-->
        <div class="adataarea">
            <ul>
                <li>
                    <a href="XIncome/XDailyHistory.aspx?date=today&user_id=<%=user_id %>">
                        <div class="dtitle">
                            <span class="timg">
                                <img src="../Skin/Theme/Images/my/jinri.png"></span><span class="ttitle">今日收入</span>
                        </div>
                        <div class="dcount"><%=pageData.income_today.ToString("0.00") %></div>
                    </a>
                </li>
                <li>
                    <a href="XIncome/DailyHistory.aspx?user_id=<%=user_id %>">
                        <div class="dtitle">
                            <span class="timg">
                                <img src="../Skin/Theme/Images/my/leiji.png"></span><span class="ttitle">累计收入</span>
                        </div>
                        <div class="dcount"><%=pageData.income_total.ToString("0.00") %></div>
                    </a>
                </li>
                <li>
                    <a href="XChild1Agent.aspx?user_id=<%=user_id %>">
                        <div class="dtitle">
                            <span class="timg">
                                <img src="../Skin/Theme/Images/agent/level1.png"></span><span class="ttitle">1级代理</span>
                        </div>
                        <div class="dcount"><%=pageData.agent1_count_total %> 个</div>
                    </a>
                </li>
                <li>
                    <a href="XChild2Agent.aspx?user_id=<%=user_id %>">
                        <div class="dtitle">
                            <span class="timg">
                                <img src="../Skin/Theme/Images/agent/level2.png"></span><span class="ttitle">2级代理</span>
                        </div>
                        <div class="dcount"><%=pageData.agent2_count_total %> 个 </div>
                    </a>
                </li>
            </ul>
        </div>
        <div class="clear"></div>
        <!--代理数据信息-->
        <div class="adataarea">
            <ul>
                <li>
                    <a href="../Dimond/History.aspx?user_id=<%=user_id %>">
                        <div class="dtitle">
                            <span class="timg">
                                <img src="../Skin/Theme/Images/my/zuanshi.png"></span><span class="ttitle">八星钻石</span>
                        </div>
                        <div class="dcount"><%=pageData.diamond %> 颗</div>
                    </a>
                </li>
                <li>
                    <a href="../WithDraw/Default.aspx?user_id=<%=user_id %>">
                        <div class="dtitle">
                            <span class="timg">
                                <img src="../Skin/Theme/Images/my/zhanghuyue.png"></span><span class="ttitle">余额<%=pageData.blance.ToString("0.00") %></span>
                        </div>
                        <div class="dcount t-b">我要提现</div>
                    </a>
                </li>
            </ul>
        </div>
        <div class="clear"></div>
        <!--个人数据信息-->

        <!--菜单区域-->
        <div class="menulist">
            <ul>
                <li class="menudetail">
                    <div class="menucontent">
                        <a href="../Dimond/DimondTransfer.aspx?user_id=<%=user_id %>"><span class="mimg">
                            <img src="../Skin/Theme/Images/my/zengsongfangka.png"></span><span class="mtitle">钻石转入游戏</span><span class="marrow"><img src="../Skin/Theme/Images/my/arrow1.png"></span><span class="smalltip">不可赠送给代理</span></a>
                    </div>
                </li>
                <li class="menudetail">
                    <div class="menucontent">
                        <a href="../Payment/WxPay/BuyCard.aspx"><span class="mimg">
                            <img src="../Skin/Theme/Images/my/goumaifangka.png"></span><span class="mtitle">购买钻石</span><span class="marrow"><img src="../Skin/Theme/Images/my/arrow1.png"></span></a>
                    </div>
                </li>
            </ul>
        </div>

        <div class="menulist">
            <ul>
                <li class="menudetail">
                    <div class="menucontent">
                        <a href="XIncome/Default.aspx?user_id=<%=user_id %>"><span class="mimg">
                            <img src="../Skin/Theme/Images/my/shourushuju.png"></span><span class="mtitle">收入详情</span><span class="marrow"><img src="../Skin/Theme/Images/my/arrow1.png"></span></a>
                    </div>
                </li>
                <li class="menudetail">
                    <div class="menucontent">
                        <a href="../Recharge/History.aspx?user_id=<%=user_id %>"><span class="mimg">
                            <img src="../Skin/Theme/Images/my/chongzhijilu.png"></span><span class="mtitle">充值详情</span><span class="marrow"><img src="../Skin/Theme/Images/my/arrow1.png"></span></a>
                    </div>
                </li>
                <li class="menudetail">
                    <div class="menucontent">
                        <a href="ChildUser.aspx?user_id=<%=user_id %>"><span class="mimg">
                            <img src="../Skin/Theme/Images/my/tuiguanguser.png"></span><span class="mtitle">推广玩家详情</span><span class="marrow"><img src="../Skin/Theme/Images/my/arrow1.png"></span><span class="smalltip">推广一个用户送2颗钻石</span></a>
                    </div>
                </li>
            </ul>
        </div>
        <div class="menulist">
            <ul>
                <li class="menudetail">
                    <div class="menucontent">
                        <a href="../Promotion/Default.aspx?user_id=<%=user_id %>"><span class="mimg">
                            <img src="../Skin/Theme/Images/my/mianfeizuanshi.png"></span><span class="mtitle">免费领取钻石</span><span class="marrow"><img src="../Skin/Theme/Images/my/arrow1.png"></span></a>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
    <!-- ####################################一级代理#################################### -->
    <div class="section-bar">1级代理</div>
    <div class="content">
        <div class="adataarea" id="agent">
            <ul>
                <li class="agentdateinfo">

                    <span class="ttitle">今日新增 <a class="t-r"><%=pageData.agent1_count_today %> 位</a></span>
                </li>
                <li class="agentdateinfo">

                    <span class="ttitle">累计代理 <a class="t-r"><%=pageData.agent1_count_total %> 位</a></span>
                </li>
                <li class="agentdateinfo">

                    <span class="ttitle">今日收入<a class="t-r"><%=pageData.agent1_commission_today.ToString("0.00") %> 元</a></span>
                </li>
                <li class="agentdateinfo">

                    <span class="ttitle">累计收入 <a class="t-r"><%=pageData.agent1_commission_total.ToString("0.00") %> 元</a></span>
                </li>
            </ul>
        </div>

        <div class="toplist">
            <ul id="add">
                <li class="datalist-title">
                    <div class="list-w35">昵称</div>
                    <div class="list-w25">当日收入</div>
                    <div class="list-w20">累计收入</div>
                    <div class="list-w20">下线数</div>
                </li>
                <%
                    foreach (Agent1Record r in agent1List)
                    {
                        Response.Write(string.Format("<li class='datalist'><div class='list-w35'>{0}&nbsp;</div><div class='list-w25 t-success'>{1}</div><div class='list-w20'>{2}</div><div class='list-w20'>{3}位</div></li>", ShortText(r.nickname, 6), r.rebate_amount_today.ToString("0.00"), r.rebate_amount_total.ToString("0.00"), r.agent_count));
                    }
                %>
                <!--
                        <li class="datalist"><div class="list-w35">传说兔子没有毛</div><div class="list-w25 t-success">99800.00</div><div class="list-w20">999999.00</div><div class="list-w20">999位</div></li>
                        -->

            </ul>
        </div>
    </div>
    <!-- ####################################二级代理#################################### -->
    <div class="section-bar">2级代理</div>

    <div class="content">
        <div class="adataarea" id="agent">
            <ul>
                <li class="agentdateinfo">
                    <div>
                        <span class="ttitle">今日新增 <a class="t-r"><%=pageData.agent2_count_today %> 位</a></span>
                </li>
                <li class="agentdateinfo">
                    <div>
                        <span class="ttitle">累计代理 <a class="t-r"><%=pageData.agent2_count_total %> 位</a></span>
                </li>
                <li class="agentdateinfo">
                    <div>
                        <span class="ttitle">今日收入<a class="t-r"><%=pageData.agent2_commission_today.ToString("0.00") %> 元</a></span>
                </li>
                <li class="agentdateinfo">
                    <div>
                        <span class="ttitle">累计收入 <a class="t-r"><%=pageData.agent2_commission_total.ToString("0.00") %> 元</a></span>
                </li>
            </ul>
        </div>
        <div class="clear">
            <div class="toplist">
                <ul id="add">
                    <li class="datalist-title">
                        <div class="list-w35">昵称</div>
                        <div class="list-w25">当日收入</div>
                        <div class="list-w20">累计收入</div>
                    </li>
                    <%
                        foreach (Agent2Record r in agent2List)
                        {
                            Response.Write(string.Format("<li class='datalist'><div class='list-w35'>{0}&nbsp;</div><div class='list-w25 t-success'>{1}</div><div class='list-w20'>{2}</div></li>", ShortText(r.nickname, 6), r.rebate_amount_today.ToString("0.00"), r.rebate_amount_total.ToString("0.00")));
                        }
                    %>
                    <!--
                        <li class="datalist"><div class="list-w35">传说兔子没有毛</div><div class="list-w25 t-success">99800.00</div><div class="list-w20">999999.00</div><div class="list-w20">999位</div></li>
                        -->

                </ul>
            </div>
        </div>
    </div>
    <!-- ####################################今日收入#################################### -->
    <div class="section-bar">今日收入</div>
    <div class="content">
        <div class="dateresult">今日收入<a class="datatext"><%=pageData.income_today %></a>元</div>
        <div class="toplist">
            <ul id="add">
                <li class="datalist-title">
                    <div class="list-w30">时间</div>
                    <div class="list-w25">收入金额</div>
                    <div class="list-w45">收入来源</div>
                </li>
                <%
                    foreach (IncomeRecord r in incomeList)
                    {
                        Response.Write(string.Format("<li class='datalist'><div class='list-w30'>{0}</div><div class='list-w25'>{1}</div><div class='list-w45 t-success'>{2}</div></li>", r.datetime, r.amount.ToString("0.00"), ShortText(r.remark,10)));
                    }
                %>
                <!--
                    <li class="datalist"><div class="list-w30">04-05 12:00</div><div class="list-w25">99800.00</div><div class="list-w45 t-success">[xxxxx]注册成代理</div></li>
                    -->

            </ul>
        </div>
    </div>
</body>
</html>
